const mongoose = require('mongoose')
const Schema = mongoose.Schema
const feld = {
  name: String,
  age: String,
  // 人物标签
  level: String,
  gender: String,
  school: { type: Schema.Types.ObjectId, ref: 'School' },
  academy: { type: Schema.Types.ObjectId, ref: 'Academy' }
}
// 自动添加更新时间创建时间:
const personSchema = new mongoose.Schema(feld, { timestamps: { createdAt: 'created', updatedAt: 'updated' }})
module.exports = mongoose.model('Teacher', personSchema)
